import Vue from 'vue'
<<<<<<< HEAD
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/index',
      name: 'index',
      component: () => import('../views/index.vue'),
    }, {
      path: '/home',
      name: 'home',
      component: () => import('../views/home.vue'),
    }, {
      path: '/city',
      name: 'city',
      component: () => import('../views/city.vue'),
    }, {
      path: '/detail',
      name: 'detail',
      component: () => import('../views/detail.vue'),
    }
  ]
})
=======
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
>>>>>>> 31a66a540e66d2ea5e63d0d0cbcb50c617fb80eb
